package plugins.jTreeFolder;

import java.io.File;
import java.io.Serializable;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * 
 * @description Permet de créer des nodes avec en paramètre un chemin d'accès à un fichier
 * @author Amine HALLILI amine.hallili@gmail.com
 */
public class NodeWithFile extends DefaultMutableTreeNode implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	File file;

    public NodeWithFile() {
        super();
    }
    
    public NodeWithFile(Object userObject) {
        super(userObject);
        file = (File) userObject;
    }

    public NodeWithFile(Object userObject, File newFile) {
        super(userObject);
        file = newFile;
    }

    public File getFile() {
        return file;
    }
    
    public void setFile(File f){
    	this.file = f;
    }
}
